package com.qiyueoffice.action;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.qiyueoffice.service.EmployeeService;
import com.qiyueoffice.service.impl.EmployeeServiceImpl;
import com.qiyueoffice.vo.Employee;

public class EmployeeAction extends ActionSupport {

	/**
     * 
     */
	private static final long serialVersionUID = 1L;

	/** */
	EmployeeService employeeService = new EmployeeServiceImpl();

	/** */
	Employee employee;

	public String login() throws Exception {
//		employee = new Employee();
//		employee.setEmp_name("汪韬");
//		employee.setEmp_pwd("123456");
//		Employee emp = employeeService.login(employee);
//		if (emp != null) {
//			ActionContext.getContext().getSession().put("employee", emp);
//			return "login_success";
//		} else {
//			return Action.LOGIN;
//		}
		
		return "login_success";
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

}
